<template>
  <div class="userMsg">
    <el-form
      :label-position="labelPosition"
      label-width="80px"
      :model="formLabelAlign"
      class="userMsg_form"
    >
      <el-form-item label="登录者"> {{ userInfo.name }} </el-form-item>
      <el-form-item label="所属单位">
        {{ userInfo.hospital_name }}
      </el-form-item>
    </el-form>
    <el-button @click="showFn" type="primary"> 修改登录密码</el-button>
  </div>
</template>

<script>
import { getpagelinchuangList } from '@/api/home.js'
export default {
  data() {
    return {
      userInfo: this.$store.state.user.info,
      labelPosition: 'right',
      formLabelAlign: {
        name: '',
        region: '',
        type: '',
      },
    }
  },
  methods: {
    showFn() {
      this.$emit('showFn')
    },
  },
}
</script>

<style lang="less">
.userMsg {
  padding: 20px;
  .el-form-item {
    margin-bottom: 0;
  }
  .el-form-item__label {
    font-size: 15px;
    color: #999;
  }
  .el-form-item__content {
    margin-left: 90px !important;
    font-size: 15px;
  }
  .userMsg_form {
    margin-bottom: 30px;
  }
}
</style>
